﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using AIO.Entity.Base;

namespace AIO.Entity
{
    /// <summary>
    /// 课表
    /// </summary>
    [Table("TB01")]
    public class TimeTable : BaseEntity
    {
        /// <summary>
        /// 课时
        /// </summary>
        [Required]
        [Column("TB001"), MaxLength(5)]
        public int? ClassHour { get; set; }

        /// <summary>
        /// 课程名称
        /// </summary>
        [Required]
        [Column("TB005"), MaxLength(40)]
        public string? CourseName { get; set; }
    }
    
}
